Input sanitization to prevent XSS

90

$name = $_GET["name"];
$safename = htmlspecialchars($name);
echo "Welcome $safename";

Comments

Submit
0 Comments